<?php session_start(); ?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="css/right.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.jcarousel.min.js"></script>
<script type="text/javascript" src="js/jquery.pikachoose.js"></script>
<script language="javascript">
			$(document).ready(function (){
					$("#pikame").PikaChoose({
						carousel:true, 
						carouselVertical:true,
						thumbOpacity:0.9,
						showCaption:true			
						});
				});
			
		</script>
</head>
<body>
<?
	global $db,$lg;
	//$lg= 'vn';
	include ('../../includes/config.php');
	define('TPL_DIR', 'templates/site/');
	define('SRC_DIR', 'sources/site/');
	define('CLASS_DIR', 'class/');
	include ("../../includes/constant.php");
	include ("../../includes/functions.php");
	include ("../../includes/va_db.php");
	$id = $_SESSION['id_slider'];
	$sql = "select * from image_post_silder where img_id = ".$id;
	
	//echo $sql;
	$arr = $db->getAll($sql);
	//print_r($arr);
	
?>
<div class="pikachoose">
  <ul id="pikame" class="jcarousel-skin-pika">
  	<?
    	for($i = 0; $i < count($arr);$i++)
		{
			$img_title = $arr[$i]['title_'.$lg];
			$img_src = $arr[$i]['url'];
			$img_href = $arr[$i]['href_src'];
	?>
    <li><a href="<?=$img_href?>" target="_blank"><img src="../../<?=$img_src?>" alt="<?=$img_title?>" title="<?=$img_title?>"/></a><span><?=$img_title?></span></li>
    <?
    	}
	?>
  </ul>
</div>
<style>
.jcarousel-skin-pika {
	top:90px !important;
}
</style>
</body>
</html>